<extend name="layout/admin" />
<block name="title">分类添加</block>
<block name="content">
	<div class="row">
		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-heading">分类添加</div>
				<div class="panel-body">
					<div class="col-md-10 col-md-offset-2">
						<form role="form" action="__URL__/insert" method="post">
							<div class="form-group">
								<label>分类名称</label>
								<input class="form-control" placeholder="请输入分类名称" type="text" name="name">
							</div>

							<div class="form-group">
								<label>父级分类</label>
								<select class="form-control" name="pid">
									<option value="0">请选择:</option>
									<foreach name="res" item="vo">
										<option value="{$vo.id}">{$vo.name}</option>
									</foreach>
								</select>
							</div>
							<button type="submit" class="btn btn-primary">提交</button>
							<button type="reset" class="btn btn-default">取消</button>
						</form>
					</div>
				</div>
			</div>
		</div><!-- /.col-->
	</div>
</block>